package com.yzd.learnjava.strings;

import com.yzd.learnjava.util.Print;
/*
 * String.replace()
 */
public class Replacing {

	static String s = Splitting.knights;
	public static void main(String[] args) {
		Print.print(s.replaceFirst("f\\w+", "located"));
		Print.print(s.replaceAll("(shrubbery|tree|herring)", "banana"));
	}

}
